import api from 'api';
const ALIYUNOSS = {
  //aliyun OSS config
  uploadImageUrl: `${api.imageCdn}`, //默认存在根目录，可根据需求改
  AccessKeySecret: 'nx3UAqMBDpmZfniDRoSAYqx3man8po',
  OSSAccessKeyId: 'LTAI5tRAUoL1KZcWdeM72D1o',
  AliOSSBucketName: 'keju123',
  timeout: 87600 //这个是上传文件时Policy的失效时间
}
const ChatConfig = {
  CIM_URI: "wss://chat.keju123.com/wss",

  APP_VERSION: "1.0.0",
  APP_CHANNEL: "web",
  APP_PACKAGE: "com.farsunset.cim",

  /*
   *特殊的消息类型，代表被服务端强制下线
   */
  ACTION_999: "999",
  DATA_HEADER_LENGTH: 1,

  MESSAGE: 2,
  REPLY_BODY: 4,
  SENT_BODY: 3,
  PING: 1,
  PONG: 0,

  /*
   * 握手鉴权常量
   */
  KEY_HANDSHAKE: "client_handshake",
  CODE_UNAUTHORIZED: "401",

  CODE_OK: "200",
  KEY_CLIENT_BIND: "client_bind",

  /**
   * PONG字符串转换后
   * @type {Uint8Array}
   */
  PONG_BODY: "PONG",
  manualStop: false
}

/**
 * page
 */
const PAGEPATH = {
  home: '/pages/home/home',
  message: '/pages/message/message',
  company: '/pages/company/home',
  list: "/pages/list/list",
  products: "/pages/products/products",
  goods: '/pages/goods/goods',
  shop: '/pages/shop/shop',
  order: '/pages/order/order',
  checkout: '/pages/checkout/checkout',
  login: '/pages/login/login',
  reset: '/pages/reset/reset',
  register: '/pages/register/register',
  user: '/pages/user/user',
  newuser: '/pages/useradd/adduser',
  reguser: '/pages/reguser/adduser',
  wechat: '/pages/wechat/wechat',
  team: '/pages/userteam/team',
  cart: '/pages/cart/cart',
  web: '/pages/web/web',
  address: '/pages/address/address',
  addressInner: '/pages/address-inner/address-inner',
  userOrder: '/pages/userOrder/userOrder',
  userProfile: '/pages/userProfile/userProfile',
  collection: '/pages/collection/collection',
  orderExpress: '/pages/orderExpress/orderExpress',
  userName: '/pages/userName/userName',
  comments: '/pages/comments/comments',
  userNickName: '/pages/userNickName/userNickName',
  userSafety: '/pages/userSafety/userSafety',
  phoneModify: '/pages/phoneModify/phoneModify',
  coupon: '/pages/coupon/coupon',
  couponList: '/pages/couponList/coupon',
  redPacketLog: '/pages/redPacketLog/redPacketLog',
  search: '/pages/search/search',
  searchfabu: '/pages/searchfabu/search',
  searchResult: '/pages/searchResult/index',
  flashSale: '/pages/flashSale/flashSale',
  everydaySale: '/pages/everydaySale/everydaySale',
  goodTea: '/pages/goodTea/goodTea',
  waoVideo: '/pages/waoVideo/waoVideo',
  everydayShop: '/pages/everydayShop/everydayShop',
  shopSearch: '/pages/shopSearch/shopSearch',
  searchShop: '/pages/searchShop/searchShop',
  afterSale: '/pages/afterSale/afterSale',
  orderDetails: '/pages/orderDetails/orderDetails',
  commentsGoods: '/pages/commentsGoods/commentsGoods',
  commentsEdit: '/pages/commentsEdit/commentsEdit',
  commentsAppend: '/pages/commentsAppend/commentsAppend',
  commentsSuccess: '/pages/commentsSuccess/commentsSuccess',
  paymentFeedback: '/pages/paymentFeedback/paymentFeedback',
  applyRefund: '/pages/applyRefund/applyRefund',
  applySelectType: '/pages/applySelectType/applySelectType',
  aftersaleDetails: '/pages/aftersaleDetails/aftersaleDetails',
  aftersaleLog: '/pages/aftersaleLog/aftersaleLog',
  fillExpress: '/pages/fillExpress/fillExpress',
  settings: '/pages/settings/settings',
  myteam: '/pages/team/index',
  teamtj: '/pages/teamtj/index',
  achievement: '/pages/achievement/index',
  bill: '/pages/bill/index',
  distribut: '/pages/distribut/index',
  userdetail: '/pages/userdetail/index',
  history: '/pages/history/index',
  teamtop: '/pages/teamtop/index',
  teamDetail: '/pages/teamDetail/index',
  column: '/pages/column/index',
  column_test: '/pages/column_test/index',
  pointsshop: '/pages/pointsshop/index',
  pointsgoods: '/pages/pointsgoods/goods',
  pointsorder: '/pages/pointsorder/order',
  pointsorders: '/pages/pointsorders/index',
  gongyi: '/pages/gongyi/index',
  sharereg: '/pages/sharereg/index',
  pointsDetails: '/pages/pointsDetails/index',
  pointorderExpress: '/pages/pointorderExpress/index',
  shareorder: '/pages/shareorder/index',
  kaidian: '/pages/kaidian/index',
  jinhuo:"/pages/jinhuo/cart",
  buhuo:"/pages/buhuo/cart",
  shoptixi:"/pages/shoptixi/index",
  shoporders:"/pages/shoporders/index",
  bdorder:"/pages/bdorder/order",
  shopbdorders:"/pages/shopbdorders/index",
  bdcart:"/pages/bdcart/cart",
  userbdOrder: '/pages/userbdOrder/userOrder',
  bdorderDetails: '/pages/bdorderDetails/orderDetails',
  tihuo:"/pages/tihuo/cart",
  fudao:"/pages/fudao/index",
  gotab:"/pages/gotab/index",
  userjhOrder: '/pages/userjhOrder/userOrder',
  txjhOrder: '/pages/txjhOrder/userOrder',
  jhorderDetails: '/pages/jhorderDetails/orderDetails',
  wx: '/pages/wx/index',
  shenqing: '/pages/shenqing/index',
  beforeShenqing: '/pages/beforeshenqing/beforeshenqing',
  shopsetting: '/pages/shopsetting/index',
  shopedit: '/subPackages/pages/shopedit/index',
  zuji: '/pages/zuji/index',
  companydetail: '/pages/companydetail/index',
  weizhi:'/pages/weizhi/index',
  shopresult:'/pages/shopresult/index',
  xqlistresult:'/pages/xqlistresult/index',
  tousu:'/pages/tousu/tousu',
  zhucai:'/pages/zhucai/home',
  anli: '/pages/anli/index',
  contacter:"/pages/contacter/index",
  editcontacter:"/pages/editcontacter/index",
  xqlist:"/pages/xqlist/index",
  fabuxuqiu:"/pages/xuqiu/index",
  PrivateChat:'/pages/PrivateChat/index',
  xuqiudetail:'/pages/xuqiudetail/index',
  vip:'/pages/vip/index',  
  mdhd: '/pages/mdhd/index',
  customer: '/pages/customer/index',
  mfsheji: '/subPackages/pages/mfsheji/index',
  mfshejiprice: '/subPackages/pages/mfshejiprice/index',
  admin: '/pages/admin/index',
  editadmin: '/pages/editadmin/index',
  putin:'/pages/putin/index',
  vistor:'/pages/vistor/index',
  baoguang:'/subPackages/pages/baoguang/index',
  addcase:'/pages/addcase/index',
  adddesign:'/pages/adddesign/index',
  mycase:'/pages/mycase/index',
  desworks:'/pages/desworks/index',
  myproducts:'/pages/myproducts/index',
  addproduct:'/pages/addproduct/index',
  shopcategory:'/pages/shopcategory/index',
  shopcategoryedit:'/pages/shopcategoryedit/index',
  userNickName:'/pages/userNickName/userNickName',
  anlidetail:'/pages/anlidetail/index',
  productdetail:'/pages/productdetail/index',
  degindetail:'/pages/degindetail/index',
  guanlian:'/pages/guanlian/index',
  myxuqiu:'/pages/myxuqiu/index',
  xtchat:'/pages/xtchat/xtchat',
  vipinfo:'/pages/vipinfo/vipinfo',
  signin:'/pages/signin/signin',
  platform:'/pages/platform/index',
  fwdetail:'/pages/fwdetail/fwdetail',
  fwdetail_price:'/pages/fwdetail_price/fwdetail_price',
  pingjia:'/subPackages/pages/pingjia/pingjia',
  sekalist:'/subPackages/pages/sekalist/index',
  seka:'/subPackages/pages/seka/index',
  sekadetail:'/subPackages/pages/sekadetail/index',
  addpingjia:'/subPackages/pages/addpingjia/index',
  pingjiadetail:'/subPackages/pages/pingjiadetail/pingjiadetail',
  couponshop:'/subPackages/pages/couponshop/couponshop',
  addshopcoupon:'/subPackages/pages/addshopcoupon/index',
  activitylist:'/subPackages/pages/activitylist/activitylist',
  activitybm:'/subPackages/pages/activitybm/activitybm',
  activitylistzk:'/subPackages/pages/activitylistzk/activitylistzk',
  activedproducts:'/subPackages/pages/activedproducts/index',
  couponProduct:'/subPackages/pages/couponProduct/index',
  activeShop:'/subPackages/pages/activeShop/index',
  activeShopPro:'/subPackages/pages/activeShopPro/index',
  choujiang:'/subPackages/pages/choujiang/choujiang',
  myproductsCate:'/subPackages/pages/myproductsCate/index',
  dataCenter:'/subPackages/pages/dataCenter/dataCenter',
  shareMy:'/subPackages/pages/shareMy/index',
  shareUser:'/subPackages/pages/shareUser/index',
  jingzhunUser:'/subPackages/pages/jingzhunUser/index',
  cityPutin:'/subPackages/pages/cityPutin/index',
  yaoqingchoujiang:'/subPackages/pages/yaoqingchoujiang/yaoqingchoujiang',
  yongjin:'/subPackages/pages/yongjin/yongjin',
  yongjinShop:'/subPackages/pages/yongjinShop/index',
  userbalance:'/subPackages/pages/userbalance/userbalance',
  userpoints:'/subPackages/pages/userpoints/userpoints',
  recharge:'/subPackages/pages/recharge/recharge',
  rechargejf:'/subPackages/pages/rechargejf/rechargejf',
  withdrawal:'/subPackages/pages/withdrawal/withdrawal',
  useryhk:'/subPackages/pages/useryhk/useryhk',
  addbank:'/subPackages/pages/addbank/addbank',
  password:'/subPackages/pages/password/password',
  modify: '/subPackages/pages/modify/modify',
  paymodify:'/subPackages/pages/paymodify/paymodify',
  ordermanage:'/subPackages/pages/ordermanage/ordermanage',
  sendorder:'/subPackages/pages/sendorder/index',
  vieworder:'/subPackages/pages/vieworder/index',
  orderuser:'/subPackages/pages/orderuser/orderuser',
  sendorderuser:'/subPackages/pages/sendorderuser/index',
  jiadian:'/subPackages/pages/jiadian/index',
  guobu:'/subPackages/pages/guobu/guobu',
  replacepay:'/subPackages/pages/replacepay/replacepay',
  yuangong:'/subPackages/pages/yuangong/index',
  ordeshare:'/subPackages/pages/ordeshare/index',
  qzbank:'/subPackages/pages/qzbank/qzbank',
  chat:'/subPackages/pages/chat/chat',
  hexiao:'/subPackages/pages/hexiao/hexiao',
  kehuziliao:'/subPackages/pages/kehuziliao/kehuziliao',
  kefufuzhu:'/subPackages/pages/kefufuzhu/kefufuzhu'
}

/**
 * tabbar
 */
const TABBAR = {
  home: '/pages/home/home',
  list: '/pages/list/list',
  message: '/pages/message/message',
  cart: '/pages/cart/cart',
  user: '/pages/user/user'
}

/**
 * image
 */
const FILEURL = '/static/img';
const IMAGEPATH = {
  logo: `${FILEURL}/logo.png`,
  sublogo: `${FILEURL}/sublogo.png`,
  wechat: `${FILEURL}/wechat.png`,
  avatar: `${FILEURL}/avatar-default.png`,
  avatar_no: `${FILEURL}/avatar-no.png`,
  lazyload: `${FILEURL}/default-lazyload.png`,
  notice: `${FILEURL}/notice-title.png`,
  filterArrowDefault: `${FILEURL}/filter-arrow-default.png`,
  filterArrowUp: `${FILEURL}/filter-arrow-up.png`,
  filterArrowDown: `${FILEURL}/filter-arrow-down.png`,
  filterArrowWhiteDefault: `${FILEURL}/filter-arrowWhite-default.png`,
  filterArrowWhiteUp: `${FILEURL}/filter-arrowWhite-up.png`,
  filterArrowWhiteDown: `${FILEURL}/filter-arrowWhite-down.png`,
  filterScreen: `${FILEURL}/filter-screen.png`,
  goodsGrid: `${FILEURL}/goods-grid.png`,
  goodsList: `${FILEURL}/goods-list.png`,
  starRank: `${FILEURL}/star-rank.png`,
  wechatPay: `${FILEURL}/wechat-pay.png`,
  safetyFail: `${FILEURL}/safety-fail.png`,
  safetySuccess: `${FILEURL}/safety-success.png`,
  defaultIcon: `${FILEURL}/default-icon.png`,
  storeIcon1Gray: `${FILEURL}/storeICON1-gray.png`,
  storeIcon1Cur: `${FILEURL}/storeICON1-cur.png`,
  storeIcon2Gray: `${FILEURL}/storeICON2-gray.png`,
  storeIcon2Cur: `${FILEURL}/storeICON2-cur.png`,
  storeIcon3Gray: `${FILEURL}/storeICON3-gray.png`,
  storeIcon3Cur: `${FILEURL}/storeICON3-cur.png`,
  storeSkinCover: `${FILEURL}/storeSkin-cover.png`,
  cartEmpty: `${FILEURL}/cart-empty.png`,
  userOrderIcon1: `${FILEURL}/user-orderIcon1.png`,
  userOrderIcon2: `${FILEURL}/user-orderIcon2.png`,
  userOrderIcon3: `${FILEURL}/user-orderIcon3.png`,
  userOrderIcon4: `${FILEURL}/user-orderIcon4.png`,
  userOrderIcon5: `${FILEURL}/user-orderIcon5.png`,
  bduserOrderIcon1: `${FILEURL}/bduser-orderIcon1.png`,
  bduserOrderIcon2: `${FILEURL}/bduser-orderIcon2.png`,
  bduserOrderIcon3: `${FILEURL}/bduser-orderIcon3.png`,
  bduserOrderIcon4: `${FILEURL}/bduser-orderIcon4.png`,
  bduserOrderIcon5: `${FILEURL}/bduser-orderIcon5.png`,
  userToolIcon1: `${FILEURL}/user-toolIcon1.png`,
  userToolIcon2: `${FILEURL}/user-toolIcon2.png`,
  userToolIcon3: `${FILEURL}/user-toolIcon3.png`,
  userToolIcon4: `${FILEURL}/user-toolIcon4.png`,
  userToolIcon5: `${FILEURL}/user-toolIcon5.png`,
  userToolIcon6: `${FILEURL}/user-toolIcon6.png`,
  userToolIcon7: `${FILEURL}/user-toolIcon7.png`,
  userToolIcon8: `${FILEURL}/user-toolIcon8.png`,
  userToolIcon9: `${FILEURL}/user-toolIcon9.png`,
  userToolIcon10: `${FILEURL}/user-toolIcon10.png`,
  userToolIcon11: `${FILEURL}/user-toolIcon11.png`,
  userToolIcon12: `${FILEURL}/user-toolIcon12.png`,
  userToolIcon13: `${FILEURL}/user-toolIcon13.png`,
  userToolIcon14: `${FILEURL}/user-toolIcon14.png`,
  userToolIcon15: `${FILEURL}/user-toolIcon15.png`,
  userToolIcon16: `${FILEURL}/user-toolIcon16.png`,
  userToolIcon17: `${FILEURL}/user-toolIcon17.png`,
  userToolIcon18: `${FILEURL}/3.png`,
  userToolIcon19: `${FILEURL}/user-toolIcon19.png`,
  userToolIcon20: `${FILEURL}/user-toolIcon20.png`,
  kaidian: `${FILEURL}/kaidian.png`,
  dianpu: `${FILEURL}/dianpu.png`,
  usershare: `${FILEURL}/share.png`,
  aixin: `${FILEURL}/aixin.png`,
  orderClose: `${FILEURL}/order-close.png`,
  orderDone: `${FILEURL}/order-done.png`,
  orderExpress: `${FILEURL}/order-express.png`,
  orderPayment: `${FILEURL}/order-payment.png`,
  orderPaid: `${FILEURL}/order-paid.png`,
  uploadDefault: `${FILEURL}/upload-default.png`,
  applyChange: `${FILEURL}/apply-change.png`,
  applyRefund: `${FILEURL}/apply-refund.png`,
  videoPlay: `${FILEURL}/video-play.png`,
  badun: `${FILEURL}/badun.png`,
  couponicon: `${FILEURL}/couponicon.png`,
  choujiang: `${FILEURL}/choujiang.png`,
}

module.exports = {
  getPage: PAGEPATH,
  getImage: IMAGEPATH,
  getTabbar: TABBAR,
  aliyunOSS: ALIYUNOSS,
  ChatConfig: ChatConfig
}